/* ===========================
   PRODUCT — pagina de plan (ex: scoli-mai/completa.html)
   Layout 2 coloane: imagine vizuală stânga + detalii dreapta
   =========================== */

.product {
    max-width: 1200px;
    margin: 16px auto 48px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* === IMAGE COLUMN === */
.product-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #1e3a8a 0%, #0b2454 60%, #061434 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    height: 100%;
}

.product-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 30% 20%, rgba(255,255,255,0.08), transparent 60%),
        radial-gradient(600px 400px at 70% 80%, rgba(74, 122, 176, 0.12), transparent 60%),
        repeating-linear-gradient(45deg, transparent 0 28px, rgba(255,255,255,0.02) 28px 30px);
    pointer-events: none;
}

.product-img-tag {
    position: relative;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
    z-index: 2;
}

.product-img-tag svg {
    width: 14px;
    height: 14px;
}

.product-img-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.product-img-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.product-img-content h2 {
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.05;
    margin-bottom: 10px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.product-img-content h2 .highlight {
    color: #ffffff;
}

.product-img-keywords {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.product-img-keywords span {
    background: linear-gradient(90deg, #ffffff, var(--mai-blue-300));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-img-features {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
}

.product-img-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
}

.product-img-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.product-img-features li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    margin-top: 1px;
}

.product-img-features strong { color: #ffffff; font-weight: 700; }

/* === DETAILS COLUMN === */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.product-title {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--mai-blue-900);
    margin: 0;
}

.product-price-card {
    background: #fff;
    border: 2px solid var(--mai-blue-500);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 14px 40px rgba(29, 78, 216, 0.18);
    position: relative;
}

.product-price-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--mai-blue-700), var(--mai-blue-500));
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.product-price-tag svg {
    width: 13px;
    height: 13px;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.product-price-old {
    display: none;
}

.product-price-new {
    font-size: 34px;
    font-weight: 900;
    color: var(--mai-blue-900);
    letter-spacing: -1.5px;
    line-height: 1;
    background: linear-gradient(135deg, var(--mai-blue-900), var(--mai-blue-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-price-period {
    font-size: 15px;
    color: var(--text-dim);
    font-weight: 600;
}

.product-price-save {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
    margin-bottom: 10px;
}

.product-price-save svg {
    width: 14px;
    height: 14px;
}

.product-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--mai-blue-700), var(--mai-blue-500));
    color: #fff;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(29, 78, 216, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(29, 78, 216, 0.5);
}

.product-cta::after {
    content: '→';
    font-size: 20px;
    transition: transform 0.2s;
}

.product-cta:hover::after { transform: translateX(4px); }

.product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--text-dim);
}

.product-trust .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.product-trust svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product-trust .icon-secure { color: var(--mai-blue-700); }
.product-trust .icon-cancel { color: #10b981; }
.product-trust .icon-instant { color: #f59e0b; }

.product-features {
    list-style: none;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.4;
    font-weight: 500;
}

.product-features li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.25);
}

@media (max-width: 720px) {
    .product-features { grid-template-columns: 1fr; }
}

/* === DURATION SLIDER === */
.duration-slider-wrap {
    margin-bottom: 14px;
}

.duration-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.slider-track {
    position: relative;
    padding-bottom: 28px;
}

.slider-track input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--mai-blue-600) var(--pct, 0%), var(--border) var(--pct, 0%));
    outline: none;
    cursor: pointer;
}

.slider-track input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--mai-blue-600);
    box-shadow: 0 2px 8px rgba(29,78,216,0.25);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.slider-track input[type=range]::-webkit-slider-thumb:hover {
    border-color: var(--mai-blue-500);
    box-shadow: 0 4px 14px rgba(29,78,216,0.35);
}

.slider-track input[type=range]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--mai-blue-600);
    box-shadow: 0 2px 8px rgba(29,78,216,0.25);
    cursor: pointer;
}

.slider-ticks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
}

.slider-ticks span {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    transform: translateX(-50%);
    white-space: nowrap;
    transition: color 0.2s;
}

.slider-ticks span.active {
    color: var(--mai-blue-700);
}

.duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--mai-blue-700), var(--mai-blue-500));
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.price-per-month-hint {
    font-size: 12.5px;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .product { grid-template-columns: 1fr; gap: 24px; }
    .product-img-wrap { min-height: 420px; }
}

@media (max-width: 720px) {
    .product { padding: 0 14px; gap: 20px; }
    .product-img-wrap { min-height: 300px; border-radius: 14px; }
    .product-img-content h2 { font-size: clamp(20px, 7vw, 30px); }
    .product-img-features ul { gap: 6px; font-size: 12px; }
    .product-img-features li svg { width: 18px; height: 18px; }

    .product-title { font-size: clamp(18px, 5vw, 24px); }
    .product-price-row { flex-wrap: wrap; gap: 6px; align-items: baseline; }
    .product-price-new { font-size: 28px; }
    .product-price-old { font-size: 14px; }
    .product-cta { padding: 13px 16px; font-size: 14px; width: 100%; text-align: center; justify-content: center; min-width: 0; }
    .product-features { grid-template-columns: 1fr; gap: 8px; }
    .product-features li { font-size: 13px; }
    .product-trust { flex-wrap: wrap; gap: 8px; }
    .trust-item { font-size: 12px; }

    .breadcrumb { padding: 8px 14px; font-size: 12px; }

    .tier-selector { flex-wrap: wrap; gap: 6px; }
    .tier-btn { padding: 7px 12px; font-size: 12px; }
    .tier-total { font-size: 13px; }
}

/* Custom Bonus styling */
.product-features li.bonus-feature {
    color: #1d4ed8 !important;
    font-weight: 700;
}
.product-features li.bonus-feature svg {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    box-shadow: 0 2px 5px rgba(29, 78, 216, 0.25) !important;
}

/* === INSTALLMENTS HINT === */
.installments-hint-bottom {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #16a34a;
    margin-top: 12px;
}

.installments-hint-bottom svg {
    vertical-align: middle;
    margin-right: 4px;
    display: inline-block;
}
